package com.project.service;

import com.project.entity.po.Employee;
import com.project.result.ResponseResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface EmployeeService {
    /**
     * 查询所有员工信息
     * @return
     */
    ResponseResult<List<Employee>> selectAllEmployee();

    /**
     * 根据ID删除员工信息
     * @param id
     * @return
     */
    ResponseResult<Integer> updateEmployeeById(Long id);

    /**
     * 根据员工名字和状态值进行模糊查询
     * @param name
     * @param status
     * @return
     */
    ResponseResult<List<Employee>> selectEmployeeByName(String name,int status);

    /**
     * 根据ID查询员工信息
     * @param id
     * @return
     */
    ResponseResult<Employee> selectEmployeeById(Long id);

    /**
     * 添加员工信息
     * @param employee
     * @return
     */
    ResponseResult<Integer> insertEmployee(Employee employee);

    /**
     * 修改员工信息
     * @param employee
     * @return
     */
    ResponseResult<Integer> updateEmployee(Employee employee);

    /**
     * 根据id修改员工值班
     * @param dutyId
     * @param id
     * @return
     */
    ResponseResult<Integer> updateEmployeeByDutyId(Long dutyId, Long id);
}
